package com.daxue.testconsumer.config;

import com.alipay.easysdk.kernel.BaseClient.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangxuedi
 * Date: 2020/4/23 16:05
 * describe:
 */
@Configuration
public class AlipayConfig {



    // 生产账号验签失败，转到沙箱环境测试
    @Bean
    public Config config() {
        Config config = new Config();
        config.protocol = "https";
        config.gatewayHost ="https://openapi.alipaydev.com/gateway.do";
        config.signType = "RSA2";
        config.appId = "2016092800617544";
        config.merchantPrivateKey = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDIAFczVGiZuW4Ft/dqILx8N3n/1R1cSdPQbOIRWgadkCjuYb4oWXk9o0e/sOLNqBJ03QqPhinmNRDWFJsM7zbk8Gn/YvXNweiOfsoyOZvbZBlmBlmQBH0rPLDsv0ImieTwk7BEaDlHUUC2ReCXKj0U+FjFpNFsMJ2ju4L3/sb6OQ29pQWpifkrwUbYNVnXMLs3UjRZk5f8RX0W38HVsYw35z2rXaDFXZGI0Ir8/JfTrgFIszQHbt/FP3ZLIT1/maRkVB+6BzHlaT7XfSD4l3j6lOXu5aD1/0Ks7EWh+rOFSmQydz5mx2VzCtnzM8tfxI8+IBnNX+sojaHY+S7l3dIHAgMBAAECggEBAIasRAuaUP0CceWD5SQfewwhxxLQDH8yb2CvkOKiPkYm5ojuZD+DUDKDGjMoBvD4tcTfetb+PoR3QykEowtooQw0HwwLNP0iD1i0Y67CQALROpEKwZBKlYZhzbj9aKvOusyMhmrpy3gMbIjQMNVZadwPBqe/vg0eB2hTQXOAqbefNrbavMD4DXMZy/y7Ld0/upGGTJo/GV1b7HbMHtS8bbvMxWKJJG5K0i8WFcZVkVnZXZeX1pynEDu8Z0fQXGpkfJ2ZgyMpRVnRhNRmLVCLGBg/w2ogCKfngQxfzBICQT+0pZa+xbtbxV6tk0hPpiAY9zMfloVd0FPEqlyCC1hG7iECgYEA40xfhOmApA/MUfQIsh8l791EGrGkHU0sTA7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